package cn.tedu.boot41.controller;

import cn.tedu.boot41.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AxiosController {
    @RequestMapping("/helloAxios")
    public String helloAxios(String info){
        return "get响应成功"+info;
    }
    @RequestMapping("/postAxios")
    public String postAxios(@RequestBody User user){
        return "post响应成功"+user.toString();
    }
}
